 package cn.exrick.xboot.modules.content.dao;

 import cn.exrick.xboot.base.XbootBaseDao;
 import cn.exrick.xboot.modules.base.entity.DepartmentHeader;
 import cn.exrick.xboot.modules.content.entity.HontDepartmentHeader;

 import java.util.List;


 /**
  * 部门负责人数据处理层
  * @author Exrick
  */
 public interface HontDepartmentHeaderDao extends XbootBaseDao<HontDepartmentHeader, String> {

  /**
   * 通过部门和负责人类型获取
   * @param departmentId
   * @param type
   * @return
   */
  List<HontDepartmentHeader> findByHontDepartmentIdAndType(String departmentId, Integer type);

  /**
   * 通过部门id删除
   * @param departmentId
   */
  void deleteByHontDepartmentId(String departmentId);

  /**
   * 通过userId删除
   * @param userId
   */
  void deleteByHontUserId(String userId);

  List<HontDepartmentHeader> findByHontUserId(String userId);
 }